package Client;

import java.math.BigInteger;
import org.bouncycastle.util.encoders.Base64;
/**
 * Public key of the service, fixed initialization vector (IV)
 * of the client, etc.
 * @author nvamelichev
 */
public class Constants {
  public static final int KEY_SIZE = 256;
  public static final int RSA_KEY_SIZE = 1024;
  public static final byte[] SERVER_PUBLIC_MODULUS =
            Base64.decode("h4o5A05pQGhheQHzOkX5L1zhCaYy9F4c7h0wZbS6mLOwNHBxq3Yo8HimNaGLrafXkLJ1ekBw1E6VrO3m6MiMuKXFCLcZhoASHiLaeEqKMtAVdWjuXKwIM5uNjVub/HLcIzSpXGLHg+ngxas2AH9Yche4/fsh3IbPgvlGNfPC4ns=");
  
  public static final BigInteger SERVER_PUBLIC_EXPONENT = new BigInteger(
            Base64.decode("AQAB")
            );
  // IV (initialization vector)
  public static final byte ENCRYPTION_IV[] = Base64.decode("zSJzF1ceB0dcK0QtFgMTJg==");
  // salt
  public static final byte SALT[] = Base64.decode("JS1gWBEFAvpM");
  // key derivation, # of iterations
  public static final int ITERATIONS = 5000;
}
